import { RouteRecordRaw } from "vue-router";
const manage:RouteRecordRaw={
    name:'manage',
    path:'/manage',
    component:()=>import('@/components/manageLayout.vue'),
    redirect:'/dashboard',
    children:[
        {
            name:'dashboard',
            path:'/dashboard',
            component:()=>import('@/pages/manage/dashboard.vue')
        },
        {
            name:'user',
            path:'/user',
            component:()=>import('@/pages/manage/user.vue')
        },
        {
            name:'question',
            path:'/question',
            component:()=>import('@/pages/manage/question/index.vue')
        },
        {
            name:'questionDetail',
            path:'/question/:id',
            props:true,
            component:()=>import('@/pages/manage/question/detail.vue')
        },
        {
            name:'coupons',
            path:'/coupons',
            component:()=>import('@/pages/manage/coupons/index.vue')
        },
    ]
}

export default manage